package com.blb.ssh.service;

import java.util.List;

import com.blb.ssh.entity.Menu;
import com.blb.ssh.entity.Role;

public interface RoleService {
	
	//查询数据总条数
	public Long getRoleCount();
	
	//查询所有数据
	public List<Role> getRoleListByMap(int page, int rows);
	
	//删除
	public boolean batchDeleteRole(String ids);
	
	//新增
	public boolean addRole(Role role);
	
	//修改
	public boolean editRole(Role role);
	
	//条件查询
	public List<Role> getRoleListByMap(String rolename, int page, int rows);
	//获取roleid对应的全部menu信息
	public List<Menu> getmenuId(int roleId);
	//获取menu的全部
	public List<Menu> getAllTree();

	public boolean editRole(String ids, int roleId);
}
